// components/load-container/index.js
import { virtualHostConfig } from '@/behavior/virtualHost'

Component({
  ...virtualHostConfig({
    config: {
      options: { multipleSlots: true, pureDataPattern: /^_/ }
    }
  }),

  /**
   * 组件的属性列表
   */
  properties: {
    height: {
      type: String,
      value: '100%'
    },
    isLoadSlot: Boolean,
    isEndSlot: Boolean,
    loadingText: {
      type: String,
      value: ''
    },
    state: {
      type: Object,
      value: {
        isFreshing: false,
        isPending: false,
        isContent: false,
        isError: false,
        error: {}
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClick () {
      this.triggerEvent('click')
    }
  }
})
